﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/

using System;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.Eventing.Reader;

namespace CoreShop.Model
{
    /// <summary>
    /// 线上订单实体
    /// </summary>
    public partial class corecmsordermaster
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public long id { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "tenantId", IsNullable = true)]
        public int tenantId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderSn", IsNullable = true)]
        public string orderSn { get; set; }

        /// <summary>
        /// 支付总金额 合计=商品金额-优惠总金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "payAmount", IsNullable = true)]
        public decimal? payAmount { get; set; }
        /// <summary>
        /// 订单总金额=商品总金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "totalAmount", IsNullable = true)]
        public decimal? totalAmount { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "userName", IsNullable = true)]
        public string userName { get; set; }

        /// <summary>
        /// 用户手机号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "userPhone", IsNullable = true)]
        public string userPhone { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "payTime", IsNullable = true)]
        public DateTime payTime { get; set; }

        /// <summary>
        /// 状态 1未支付  3 待提货 4 退款中 -2 超时关闭 8 交易完成  -1 交易关闭 2备货中
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "status", IsNullable = true)]
        public int? status { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "checkFlag", IsNullable = true)]
        public bool checkFlag { get; set; } = false;

        /// <summary>
        /// 是否上传
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isUpload", IsNullable = true)]
        public bool isUpload { get; set; } = false;

        /// <summary>
        /// Json内容
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "content", IsNullable = true)]
        public string content { get; set; }
    }
}